<?php if ( ! defined('BASEPATH')) exit('This file does not run directly. Sorry.'); ?>
<?php
/**
 * Kalaisoo.
 *
 * A lightweight no-framework framework written in PHP.
 *
 * @package Kalaisoo
 * @author $Author: info@sah-company.com $
 * @since $Version$
 * @version $Id: config_default.php 129 2012-01-14 00:02:15Z info@sah-company.com $
 */

/**
 * Configuration.
 * 
 * Configure this array to tell router, logger, cache, database and other classes
 * how to handle things. Some settings will impact the performance and others will
 * do so for the security or usability of your web application.
 *
 * @todo Write a manual entry about configuration, at least comment here
 *
 * @var array
 */
$config = array(
	'router' => array(
		'language' => 'de',
		'offset' => 1, // if you install into your web root, this must be 0
		'controller' => 'welcome', // the default controller
		'method' => 'index' // the default method
	),
	'locale' => array(
		'de' => 'de_DE.UTF-8',
		'en' => 'en_GB.UTF-8'
	),
	'cms' => array(
		'active' => false
	),
	'uploads' => array( // set the path to a upload folder. It must be writeable, outside webroot
		'folder' => '/uploads',
		'max_file_size' => 100000
	),
	'logger' => array(
		'save' => false // set this to true to write logs to your harddisk
	),
	'cache' => array(
		'lifetime' => 300 // defines the time in seconds until a cached file is outdated
	),
	'db' => array(
		'driver' => 'mysql',
		'host' => 'localhost',
		'database' => 'dbname',
		'username' => 'user',
		'password' => 'secret',
		'options' => array(
			PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
			PDO::ATTR_PERSISTENT => false,
			PDO::ATTR_EMULATE_PREPARES => false,
			PDO::CASE_LOWER => true,
			PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'
		)
	),
	'mail' => array( // settings for newsletter and notification mails
		'from' => array(
			'email' => 'johndoe@example.com',
			'name' => 'Do not reply'
		),
		'charset' => 'UTF-8',
		'max_file_size_csv' => 102400, // CSV file must not exceed 100 KByte
		'transporter' => 'mail', // you may set this to smtp or mail, as you prefer
		'transporters' => array( // you may add other transporters, dont forget to add code
			'mail' => true,
			'smtp' => array(
				'host' => 'your.smtp.server',
				'port' => 25,
				'user' => 'johndoe@example.com',
				'pw' => 'secret'
			)
		)
	),
	'dbTest' => array( // your database for testing purposes, watch out this gets nuked in test
		'driver' => 'mysql',
		'host' => 'localhost',
		'database' => 'testdb',
		'username' => 'user',
		'password' => 'secret',
		'options' => array(
			PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
			PDO::ATTR_PERSISTENT => false,
			PDO::ATTR_EMULATE_PREPARES => false,
			PDO::CASE_LOWER => true,
			PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'
		)
	),
	'analytics' => array(
		'head' => '<!-- No head analytics. Define one in your config file -->',
		'body' => '<!-- No body analytics. Define one in your config file -->'
	)
);
?>